fix: allow display name in email from field#124
Merged
Conversation
支持发件人地址带显示名格式(如 "robot" <[email protected]>), 通过 @isemail({ allow_display_name: true }) 放宽校验,向后兼容纯邮箱。 Co-authored-by: Cursor <[email protected]>
Contributor
|
sdk version 2.27.0-pr-124-784097a775 ## for js/ts project
pnpm add @36node/[email protected] |
zzswang
pushed a commit
that referenced
this pull request
Jun 11, 2026
🤖 I have created a release *beep* *boop* --- ## [2.27.1](v2.27.0...v2.27.1) (2026-06-11) ### Bug Fixes * allow display name in email from field ([#124](#124)) ([deb1398](deb1398)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
from字段校验放宽为@IsEmail({ allow_display_name: true }),支持带发件人显示名格式(如"robot" <[email protected]>)SendEmailDto与EmailRecordDoc两处校验,向后兼容纯邮箱地址from原样透传给 nodemailer/postmark,二者本身支持带显示名格式,传输层无需改动Test plan
pnpm lint通过pnpm test全部通过(51 passed)@sendEmail传入"robot" <[email protected]>,确认收件方显示名正确Made with Cursor